﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;

namespace _20170202_GameNode
{
    class GameNode
    {
        public int X { get; private set; }
        public int Y { get; private set; }

        public GameNode(int x, int y)
        {
            X = x;
            Y = y;
        }

        public void MoveUp()
        { Y--; }
        public void MoveDown()
        { Y++; }
        public void MoveLeft()
        { X--; }
        public void MoveRight()
        { X++; }



    }
}
